package myweb;

import java.util.Date;


import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@SuppressWarnings("unused")
public class test1 {
	  
  
    public static void main(String[] args) {  
    	ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");  
        System.out.println("监听频道");  
        while (true) { //这里是一个死循环,目的就是让进程不退出,用于接收发布的消息  
            try {  
                Thread.sleep(3000);  
            } catch (InterruptedException e) {  
                e.printStackTrace();  
            }  
        }  
    }  
}
